﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Management/ManagementMasterPage.master"
    AutoEventWireup="true" CodeBehind="AddOrderByRH.aspx.cs" Inherits="WebApp.Management.Product.AddOrderByRH" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphContent" runat="server">
    <div>
        输入商品编号：
        <asp:TextBox ID="txtProductCode" runat="server"></asp:TextBox>(产品编号)<asp:Button ID="btnShow"
            runat="server" Text="搜索产品" OnClick="btnShow_Click" /></div>
    <div>
        <asp:DataPager ID="dpProduct1" runat="server" PagedControlID="lvProdust" PageSize="3">
            <Fields>
                <asp:NumericPagerField />
            </Fields>
        </asp:DataPager>
        <asp:ListView ID="lvProdust" runat="server" OnItemCommand="lvProdust_ItemCommand"
            OnPagePropertiesChanged="lvProdust_PagePropertiesChanged">
            <LayoutTemplate>
                <table cellpadding="2" border="1">
                    <tr>
                        <th>
                            产品编号
                        </th>
                        <th>
                            品名
                        </th>
                        <th>
                            价格
                        </th>
                        <th>
                            Other
                        </th>
                    </tr>
                    <tr id="itemPlaceholder" runat="server" />
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                <tr>
                    <%--<td>
					<asp:Image ID="Image1" ImageUrl='<%# Eval("PictureUrl") %>' runat="server" Height=96  Width=96/>
				</td>--%>
                    <td>
                        <%# Eval("ProductCode") %>
                    </td>
                    <td>
                        <asp:Label ID="labName" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="labPrice" runat="server" Text='<%# Eval("eprice") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:LinkButton ID="btnDelete" runat="server" CommandName="OnSelect" CommandArgument='<%# Eval("ProductId") %>'>选择</asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:ListView>
        <asp:HiddenField ID="hfAllPay" Value="0" runat="server"></asp:HiddenField>
        <asp:HiddenField ID="HFPID" runat="server" Value="0" />
        <asp:DataPager ID="dpProduct2" runat="server" PagedControlID="lvProdust" PageSize="3">
            <Fields>
                <asp:NumericPagerField />
            </Fields>
        </asp:DataPager>
    </div>
    <div style="height: 10px">
    </div>
    <div>
        产品名称：<asp:TextBox ID="txtProductName" runat="server"></asp:TextBox>
    </div>
    <div>
        产品价格：<asp:TextBox ID="txtPrice" runat="server"></asp:TextBox>
    </div>
    <div>
        产品数量：<asp:TextBox ID="txtCount" runat="server"></asp:TextBox>
    </div>
    <div style="height: 10px;">
    </div>
    <div style="margin-left: 20px;">
        <asp:Button ID="txtConfirmOrder" runat="server" Text="增加到购物车" OnClick="txtConfirmOrder_Click" />
    </div>
    <div style="height: 20px;">
        <hr />
    </div>
    <div>
        <asp:ListView ID="lvProductnew" runat="server" OnItemDataBound="lvProductnew_ItemDataBound">
            <LayoutTemplate>
                <table cellpadding="2" border="1">
                    <tr>
                        <th>
                            产品名称
                        </th>
                        <th>
                            单价
                        </th>
                        <th>
                            数量
                        </th>
                        <th>
                            总价
                        </th>
                    </tr>
                    <tr>
                        <asp:PlaceHolder ID="itemPlaceHolder" runat="server"></asp:PlaceHolder>
                    </tr>
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <asp:Literal ID="lbName" runat="server" Text='<%# Eval("pname")%>'></asp:Literal>
                        <asp:HiddenField ID="HFPid" runat="server" Value='<%#Eval("pid")%>' />
                    </td>
                    <td>
                        <span class="sp2_bts2">￥<asp:Literal ID="SmallCountNew" Text='<%# Eval("price") %>'
                            runat="server"></asp:Literal>元
                    </td>
                    <td>
                        <asp:Label ID="lbCount" Text='<%# Eval("count") %>' runat="server"></asp:Label>
                    </td>
                    <td>
                        ￥<asp:Literal ID="UnitPrice" runat="server" Text='<%#Eval("allprice")%>'></asp:Literal>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:ListView>
    </div>
    <div style="height: 10px;">
    </div>
    <div>
        <table>
            <tr>
                <td>
                    送货地址：
                </td>
                <td>
                    <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>说明：如果是上海市的，一定要加上“上海市”
                </td>
            </tr>
            <tr>
                <td>
                    物流公司：
                </td>
                <td>
                    <asp:DropDownList ID="ddlExpress" runat="server">
                        <asp:ListItem>申通</asp:ListItem>
                        <asp:ListItem>圆通</asp:ListItem>
                        <asp:ListItem>韵达</asp:ListItem>
                        <asp:ListItem>顺风</asp:ListItem>
                        <asp:ListItem>天地华宇物流</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    邮编：
                </td>
                <td>
                    <asp:TextBox ID="txtZIP" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    收货人姓名：
                </td>
                <td>
                    <asp:TextBox ID="txtReceive" runat="server"></asp:TextBox>
                    <asp:Button ID="btnCheckMember" runat="server" Text="检查会员" OnClick="btnCheckMember_Click" />
                    <asp:Label ID="labIsMember" runat="server"></asp:Label>
                    <asp:HiddenField ID="hfMemberID" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    收货人联系方式：
                </td>
                <td>
                    <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    运费：
                </td>
                <td>
                    <asp:Label ID="labCarriage" runat="server" Text="0"></asp:Label>
                    <asp:Button ID="btnGet" runat="server" Text="获取运费" OnClick="btnGet_Click" />
                    &nbsp;商品总金额：￥<asp:Label ID="labAllPrice" runat="server" Text="0.0"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    付款方式：
                </td>
                <td>
                    <asp:DropDownList ID="ddlPayType" runat="server">
                        <asp:ListItem Text="支付宝" Value="0"></asp:ListItem>
                        <asp:ListItem Text="银行转账" Value="1"></asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
    </div>
    <div style="height: 20px;">
    </div>
    <div style="margin-left: 100px;">
        <asp:Button ID="btnSubmit" runat="server" Text="提交" OnClick="btnSubmit_Click" />
    </div>
</asp:Content>
